package com._520it.crm.mapper;

import com._520it.crm.domain.Temporary;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface TemporaryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Temporary record);

    Temporary selectByPrimaryKey(Long id);

    List<Temporary> selectAll();

    int updateByPrimaryKey(Temporary record);

    List<Temporary> selectPage(@Param("current") int current,
                               @Param("size") int size,
                               @Param("acceptId") Long acceptId,
                               @Param("productId") Long productId,
                               @Param("applyNum") String applyNum,
                               @Param("clientEleName") String clientEleName,
                               @Param("beginDate") Date beginDate,
                               @Param("endDate") Date endDate,
                               @Param("plateNum") String plateNum);

    int selectPageCount(@Param("current") int current,
                        @Param("size") int size,
                        @Param("acceptId") Long acceptId,
                        @Param("productId") Long productId,
                        @Param("applyNum") String applyNum,
                        @Param("clientEleName") String clientEleName,
                        @Param("beginDate") Date beginDate,
                        @Param("endDate") Date endDate,
                        @Param("plateNum") String plateNum);
}